<?php
class Hydrum_Model_Manager_Collection
{
    protected $_items;

    protected $_default;

    public function set($index, $item)
    {
        $this->_items[$index] = $item;
    }

    public function get($index)
    {
        if (isset($this->_items[$index])) {
            return $this->_items[$index];
        } else {
            throw new Exception('Can\'t find model manager ' .
                ' with name "' . $index . '"');
        }
    }

    public function getDefault()
    {
        return $this->_default;
    }

    public function setDefault($item)
    {
        $this->_default = $item;
    }

}
